#ifndef MsgRecv_h__
#define MsgRecv_h__

#include "Thread.h"
#include "Networking.h"
//Server holds a pointer to each MsgRecv Thread

class MsgRecv : public Thread
{
public:
    MsgRecv() : m_sock(NULL), m_working(true) {}
	void SetSocket(Networking::Socket* sock);
    void Halt(){m_working = false;}

protected:
	virtual void Work();
    bool m_working;
	Networking::Socket* m_sock;
};
#endif // MsgRecv_h__
